//
//  UIView+Extension.h
//
//  Created by apple on 14-12-7.
//  Copyright (c) 2014年. All rights reserved.
//

/*
 * View属性扩展及工具
 */

#import <UIKit/UIKit.h>

@interface UIView (PLExtension)

@property (nonatomic, assign) CGFloat x;
@property (nonatomic, assign) CGFloat y;
@property (nonatomic, assign) CGFloat right;
@property (nonatomic, assign) CGFloat bottom;
@property (nonatomic, assign) CGFloat centerX;
@property (nonatomic, assign) CGFloat centerY;
@property (nonatomic, assign) CGFloat width;
@property (nonatomic, assign) CGFloat height;
@property (nonatomic, assign) CGSize size;
@property (nonatomic, assign) CGPoint origin;


/**
 指定角为圆角

 @param corners 需要处理为圆角的角
 @param cornerRadius 圆角半径
 */
- (void)pl_roundedByRoundingCorners:(UIRectCorner)corners cornerRadius:(CGFloat)cornerRadius;


/**
 删除所有子视图
 */
- (void)pl_removeAllSubviews;

@end
